﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ReactiveUI.Fody.Helpers;

namespace BoardController.ViewModels
{
    public class SubYuRosVm : ViewModelBase
    {

        /// <summary>
        /// RosPc的IP
        /// </summary>
        [Reactive] public string IP { get; set; } = "localhost";

        [Reactive] public int Port { get; set; } = 9090;

        [Reactive] public string Topic { get; set; } = "/scaled_pos_joint_traj_controller/command";

        [Reactive] public string TopicID { get; set; } = "";

        //{"header":{"seq":188,"stamp":{"secs":0,"nsecs":0},"frame_id":""},"joint_names":["elbow_joint","shoulder_lift_joint","shoulder_pan_joint","wrist_1_joint","wrist_2_joint","wrist_3_joint"],"points":[{"positions":[1.71,-1.88,2.99,-2.92,4.86,4.72],"velocities":[],"accelerations":[],"effort":[],"time_from_start":{"secs":1,"nsecs":0}}]}

        [Reactive] public string TopicPoint { get; set; } = "";


        public bool IsContinue = true;


        [Reactive] public string SubContent { get; set; } = "";

        [Reactive] public string SubError { get; set; } = "";

    }
}
